package com.snailct.bpp.commons.utils;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 12-11-17
 * Time: 下午3:24
 * To change this template use File | Settings | File Templates.
 */
public class DateUtil {
    //
    public static Date addDays(Date date,int days){
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        calendar.add(Calendar.DAY_OF_MONTH,days);
        return calendar.getTime();
    }

}
